<?php defined('SYSPATH') or die('No direct script access.');
/**
* @package Fatima Purple Project <FPP>
* @author Markisich Emiliano <Emiliano008> <markisoft@gmail.com>
* @description Crud Model & ORM for Kohana :)
* @license MIT
* @date dom feb  21 19:12:36 PET 2009
*/

class DropdownField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
  }

  public function __toString(){ 
    $field = $this->field_name;
    $choices = $this->args->choices;
    $select = $this->field_value;
    return form::dropdown($field, $choices, $select);
  }

}

?>